import { getRequest, postRequest, putRequest } from '../utils/request'

export const requestProjectPage = params => {
  return getRequest('/projects/listPage', params, false)
}

export const requestRunProject = params => {
  return postRequest('/projects/run', params)
}

export const requestAddProject = params => {
  return postRequest('/projects/add', params)
}

export const requestUpdateProject = params => {
  return putRequest('/projects/edit', params)
}

export const requestDelProjectById = params => {
  return postRequest('/projects/remove', params)
}
